package com.xiaofeng.dao.idao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BaseSessionDao {

	@Autowired
	SessionFactory sessionFactory = null;
	Session session = null;
	public Session getSession(){
		return session = sessionFactory.openSession();
	}
	
	
}
